using UnityEngine;
using System.Collections;

public class MediumCreation : MonoBehaviour {

	public GameObject Bomb;
	public int spawnTime = 12;
	public int playerScore = 0;
	// Use this for initialization
	void Start () {
	
		
	}
	
	// Update is called once per frame
	void Update () {
		
		if(spawnTime == 0)
		{
			GameObject bombSpawning	 = (GameObject)Instantiate (Bomb, transform.position ,transform.rotation);
			
			
		}
		spawning ();
	}
	
	void spawning()
	{
		if(spawnTime >= 0)
		{
			spawnTime--;	
		}
		else if(spawnTime <= 0)
		{
			spawnTime = 15;	
		}
	}
		
}
